package com.ysxsoft.wdg.adapter.th;


import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ysxsoft.wdg.R;

public class ThKjAdapter extends BaseQuickAdapter<String,BaseViewHolder> {


    public ThKjAdapter(int layoutResId) {
        super(layoutResId);
    }

    public void clear(){
        getData().clear();
        notifyDataSetChanged();
    }


    @Override
    protected void convert(BaseViewHolder helper, String item) {

//        Glide.with(mContext).load(item.getImage()).into((ImageView) helper.getView(R.id.iv_pic));
        ImageView ivPt = helper.getView(R.id.iv_pt);
        ivPt.setVisibility(View.GONE);
//
//        helper.setText(R.id.tv_num,item.+"人已参团");
        helper.setText(R.id.tv_money,mContext.getString(R.string.price_rmb,"100"));
        TextView tvOld = helper.getView(R.id.tv_old_money);
        tvOld.setVisibility(View.GONE);

//        helper.setText(R.id.tv_name,item.getName());
//        helper.setText(R.id.tv_content,item.getName());
        helper.setText(R.id.tv_btn,"免费拿");
    }
}
